package com.ruoyi.farm.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 牛只对象 t_cattle
 * 
 * @author Andy
 * @date 2022-07-25
 */
public class Cattle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 耳标号 */
    @Excel(name = "耳标号")
    private String earSn;

    /** 购入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 来源类型-字典 */
    @Excel(name = "来源类型-字典")
    private String sourceType;

    /** 品种ID */
    @Excel(name = "品种ID")
    private Long varietyId;

    /** 母ID */
    @Excel(name = "母ID")
    private Long motherId;

    /** 父ID */
    @Excel(name = "父ID")
    private Long fatherId;

    /** 性别-字典 */
    @Excel(name = "性别-字典")
    private String sex;

    /** 毛色 */
    @Excel(name = "毛色")
    private String coatColor;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 牛只类别-字典 */
    @Excel(name = "牛只类别-字典")
    private String cattleType;

    /** 牛只等级-字典 */
    @Excel(name = "牛只等级-字典")
    private String grade;

    /** 牛只状态-字典 */
    @Excel(name = "牛只状态-字典")
    private String status;

    /** 繁育状态-字典 */
    @Excel(name = "繁育状态-字典")
    private String breedStatus;

    /** 正面照 */
    @Excel(name = "正面照")
    private String facePhoto;

    /** 删除状态：（0未删除，1已删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEarSn(String earSn) 
    {
        this.earSn = earSn;
    }

    public String getEarSn() 
    {
        return earSn;
    }
    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }
    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }
    public void setVarietyId(Long varietyId) 
    {
        this.varietyId = varietyId;
    }

    public Long getVarietyId() 
    {
        return varietyId;
    }
    public void setMotherId(Long motherId) 
    {
        this.motherId = motherId;
    }

    public Long getMotherId() 
    {
        return motherId;
    }
    public void setFatherId(Long fatherId) 
    {
        this.fatherId = fatherId;
    }

    public Long getFatherId() 
    {
        return fatherId;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setCoatColor(String coatColor) 
    {
        this.coatColor = coatColor;
    }

    public String getCoatColor() 
    {
        return coatColor;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setCattleType(String cattleType) 
    {
        this.cattleType = cattleType;
    }

    public String getCattleType() 
    {
        return cattleType;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setBreedStatus(String breedStatus) 
    {
        this.breedStatus = breedStatus;
    }

    public String getBreedStatus() 
    {
        return breedStatus;
    }
    public void setFacePhoto(String facePhoto) 
    {
        this.facePhoto = facePhoto;
    }

    public String getFacePhoto() 
    {
        return facePhoto;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("earSn", getEarSn())
            .append("buyTime", getBuyTime())
            .append("sourceType", getSourceType())
            .append("varietyId", getVarietyId())
            .append("motherId", getMotherId())
            .append("fatherId", getFatherId())
            .append("sex", getSex())
            .append("coatColor", getCoatColor())
            .append("birthday", getBirthday())
            .append("cattleType", getCattleType())
            .append("grade", getGrade())
            .append("status", getStatus())
            .append("breedStatus", getBreedStatus())
            .append("facePhoto", getFacePhoto())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
